/**
 * @file       IEvent_test.cpp
 * @brief      TODO
 * @author     Huabo Zheng
 * @date       Jan 13, 2012
 * @Copyright  2012, www.netgear.com Inc. All rights reserved.
 */

#include "IEvent.h"
#include "gtest/gtest.h"
#include "typedefine.h"
#include "MockKeyboardEvent.h"
namespace NS_LCD_AFW
{
class IEvent_test : public ::testing::Test
{
public:
	virtual void SetUp()
	{
		OBJ_NEW(CMockKeyboardEvent,m_pEvent);
	}
	virtual void TearDown()
	{
		OBJ_DESTORY(m_pEvent);
	}
	IEvent *m_pEvent ;
};
TEST_F(IEvent_test,test_defualtConstruction)
{
}
TEST_F(IEvent_test,test_getParam)
{
	m_pEvent->setParam(100);
	EXPECT_EQ(100,m_pEvent->getParam());
}
TEST_F(IEvent_test,test_getCode)
{
//	m_pEvent->setCode(IEvent::KEYBOARD_EVENT_CODE);
//	EXPECT_EQ(IEvent::KEYBOARD_EVENT_CODE,m_pEvent->getCode());
}
TEST_F(IEvent_test,test_getId)
{
	m_pEvent->setEventId(1000);
	EXPECT_EQ(1000,m_pEvent->getEventId());
}
TEST_F(IEvent_test,test_getType)
{
	m_pEvent->setType(IEvent::BROADCAST_EVENT);
	EXPECT_EQ(IEvent::BROADCAST_EVENT,m_pEvent->getType());
}
TEST_F(IEvent_test,test_getOccurTime)
{
//	time_t nOccurTime = time(NULL);
//	m_pEvent->setOccurTime(nOccurTime);
//	EXPECT_EQ(nOccurTime, m_pEvent->getOccurTime());
}
TEST_F(IEvent_test,test_getPoint)
{
//	CPoint pt(1,10);
//	m_pEvent->setPoint(pt);
//	EXPECT_EQ(pt,m_pEvent->getPoint());
}
TEST_F(IEvent_test,test_setParam)
{
}

TEST_F(IEvent_test,test_setType)
{
}
TEST_F(IEvent_test,test_setId)
{
}
TEST_F(IEvent_test,test_setCode)
{
}
TEST_F(IEvent_test,test_setOccurTime)
{
}
TEST_F(IEvent_test,test_setPoint)
{
}

} /* namespace NS_LCD_AFW */
